<div class="container">
  <h1>set_flashdata()</h1>
  <p class="signature"> function set_flashdata(string $msg): void </p>
  <h2>Description</h2>
  <div class="description">
    <p>Sets a flash message in the session.</p>
  </div>
  <h2>Parameters</h2>
  <table>
    <thead>
      <tr>
        <th>Parameter</th>
        <th>Type</th>
        <th>Description</th>
        <th>Default</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>$msg</td>
        <td>string</td>
        <td>The message to be set as flash data.</td>
        <td>N/A</td>
      </tr>
    </tbody>
  </table>
  <h2>Return Value</h2>
  <table>
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>void</td>
        <td>This function does not return anything.</td>
      </tr>
    </tbody>
  </table>
  <h2>Example Usage</h2>
  <div class="example">
    <pre>
set_flashdata("Your data has been saved successfully.");
// This sets a flash message in the session.</pre>
  </div>
</div>
